package com.woniu.common.exception;


/**
 * 自定义的断言类
 */
public class Assert {

    public static void error(String message) {
        throw new BusinessException(message);
    }

    //基本数据类型  boolean
    public static void error(boolean flag,String message) {
        if (flag) {
            throw new BusinessException(message);
        }
    }

}
